package com.travelmood.mapper;

import com.travelmood.pojo.Place;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PlaceMapper {

   void insertPlace(Place place);

   List<Place> selectPlacesByUserId(@Param("userId")Integer userId);

    Place selectPlaceById(Integer placeId);

   void updatePlace(Place place);

    void deletePlaceById(@Param("placeId")Integer placeId, Integer userId);
}
